got rid of redundant getTree()