implements priorities