update output file