2 way switching by 3 wire method