fix file output