bugfix
Improved logic to increase stat in matching
work towards correct reweighting for new templates