fixing event syntax