implement type1TV or type 2 detection