dequeue before enqueue