output now goes to the file