the createCSV function in Rank now works