result outfile fix