complete the prototype of decision::calc_decision()