stop doing assingments in an iterator