add matches method