improving the way trees are processed