treeGenerator added