new update function in checkout_decorator