real-time example code tweak