using switches in serial arrangement