match should be a const method.