check for data type