modify output file