using a new edit of the event search function