general case competing discounts