error in file output.txt