properly outline the while (1) switch pattern