update functions of priority Queue