fix for file output