issue with iterator