simplify the enqueue/dequeue