fix dequeue to deque
make deque works