feature:add callback for match method