re-generate .txt file