create the tree