update; added output file