implemented prioritization feature.