fix for iteration