renamed compare.foods to selectedFoods