example for getting an event