switched index to notification example