event code cleanup