fixing text files