enqueue: code optimize