adding swicth stmt