return write results with run func.