added depth checks to search_tree