change generation of events