modify deque methods