modifying the tree