fixed output1.txt