implement priorities