iterate through the events