cart manipulation script