output results to csv.