fixed scoping of givenIngredient() calls