new version of trees.pde