working on the tree renderer