I'd define the iterator variable at the top of this scope.