Update events.cpp