moved category_discounts into the self class section