add new function 'match'