add reg matching