updated the queue.