Determin the sub tree