adding timestamp to the event structure