match is now a method