generalize response rule for multiclass