change the variable type checking