minor tweek of matching algorithm priority