modified make-priority to resolve requirement