working on building the tree