Deque working