fixed typo in iteration