check whether it is the subTree