eventType variable should be initialized