more functionality to the tree util