passing loops