fixes for discounts