resolve RAW datatype issue