make state switch more readable