Loop over departments