why not declare 'iter' right here?