simplified example, remove dep from next() on iter