unify matching for all methods