access control switch statements finished