appended ".csv" to output filename