To from switch

Related to issue #215