updatate priority queue example