updated vector to deque