converting to new event data structure