-correction of output: direct output into outputfile