converted the levels class to jus level_protect()