add iterateEval method
Merge pull request #238 from jilen/generalize_iterate

generalize iterate method