refining automatch if znumber can be matched