cart function update 2.1