saving the tree