moving the eventLabel variable declaration