changed getBaseLevel to return correct levels