added a few functions to get more info about the trees