traverse_tree