output is now to a text file