change items and cartitems as array