fix the output format to txt