now dumps the csv file