complete output file