preen the csv file