pre process data set