fixing the data format