made hoursData global in scope.