modify queue, deque