update the queue