new wait_on_children subroutine works