modify tree