forEach snippet