updated loop naming so things didn't break!