add csv format to records