added coupons functionality