added tree-making to stats