diff --git a/src/uncategorized/walkPast.tw b/src/uncategorized/walkPast.tw
index 4403b52b0b62dbdc767721a36c58cb0e4bc05be9..40f0970d1473110f7fc0b0daedf56402571544f4 100644
--- a/src/uncategorized/walkPast.tw
+++ b/src/uncategorized/walkPast.tw
@@ -3,8 +3,7 @@
 //
 <<set $target = "">>
 <<if $familyTesting == 1 && totalRelatives($activeSlave) > 0 && random(1,100) > 80>>
-	<<set $relations = $slaves.filter(function(s) { return areSisters($activeSlave, s) > 0 || s.mother == $activeSlave.ID || s.father == $activeSlave.ID || s.ID == $activeSlave.mother || s.ID == $activeSlave.father; })>>
-	<<set $relation = $relations.random()>>
+    <<set $relation = randomRelatedSlave($activeSlave)>>
 	<<if $relation.mother == $activeSlave.ID || $relation.father == $activeSlave.ID>>
 		<<set $relationType = "daughter">>
 	<<elseif $activeSlave.mother == $relation.ID>>