modify tree.