correct output file