change parameters in searchEventForTime