rewriting matching function in light of price vs. value