Update event.cpp