changes to tree structure