fixes to the tree