No need for yet another loop. This can be done in the for loop above.