iterate function call corrected