minimal changes of vector->deque