moved the iterator keys lookup code out of the loop
Merge pull request #21 from melmothx/topic/iterators_values

moved the iterator keys lookup code out of the loop