parsing of events