added argument in call updateEvent function