I'm having trouble with the sequence of events