implementation of  data set cleaning