removed unused variable and staatic modefier of currentlevel