change iterator method