check type