update the priority of arrows