added maxLevels change