update output for csv format