removed default action from switch