fix the output of datatype