fold for tree.