updated the tree