modify compare_tree

modify compare_tree