correcting datatype