removed some extraneous code in parseCSV to make it all more compact