fixed getIngredient method