revise the output files