declaration rule is now OK with events