added output to file