almost done with building the tree