changed varable name 'firstLevel' to 'currentLevel'.