optimize my coupons and sorting