removed the deque. left in the deque branch