change in algorithm of adding last matches