check token type pt. 2