subtree problem