changed the event data slightly to make it easier for the frontend to loop over events