updates the sequence of events