subtree dist