added functionality to retrieve all priorities