setup the tree