reintroduced query for getEvents