correct file output