processing of events