declare newLevels var

throws "not defined" exception otherwise