remove unneeded code in class.admin.php