using new-style syntax connecting events