added queueContains()