matching algorithm changing