Modify tree structure