fixed indentation in get_children function