save the tree