removed the .tmp extension from the written out file