csv file output is wonky