add event type to metadata of events