invert the priority logic