setNew2: use iterator class
overlooked this one in the previous commit