use correct event in demo code