apparently i used a deque