corect output file