added iterator code