change the function searchEventName