replace match() with search()