changing format to txt