now actually looping over events