added same-tree