modify switch statements