rm type check