changed event syntax to be more intuitive