callback function of priority changed