check type resistence