replace totalItems with totalAmount