printing out the events