fixed how priority cases are obtained