modify tree model