added interface for match method