added basic switching cipher