added deque iterator