implemented event search