added a tree builder