fixed putcsv array to account for a few errors