ensure no overlap of subtrees