method to apply coupon