updated build_tree methdo