refactored how discounts are displayed