added isSubtree