fixing csv format problem