updating for refactoring upgradeLevels