set return values and finished.