change the output format to match csv