updated iterator
Merge pull request #9 from nestharus/local-code

updated iterator