output in file (fix)