small changes to output file