need to update create_tree method