changes num_children to numChildren