fix iteration