rules of priority