added matches method