revised output file