fixed .txt file problems