converting raw data