use steps consistently for synchronization of events in examples