modify tree nodes