commented new_child function