Change tree structure