write event data