output results to file