changed to enum API cart implementation