check type lowercase