update the queue functions