update priorities