fix guided iteration