add missing event code