corrected event variable use