update Same_Tree