datatype correction