renamed max_meas to max_reaction