Revert "update switch"

This reverts commit 658810cb8fe08cc7262e8e34639029fbbe62e393.