Revert "homework of switch"

This reverts commit b548d534f1823ad3160c7c049d1dcde47db3416c.