modifying get_all_children