deque seems to be working