missed reduceCSV function