maintree for the subtree