add match() function.