added method for update of event