using switches