the for ... in loop evaluates the size initially and saves it so it works. Will change it to numParents though.