divided items index into two different lists, one for container and one for shopping list