keep event declarations together