change match back into an instance method