priority is set based on category