changed output filename = output.txt