corrected event code