put dequeue for close to the right place