working on output files