transform in switch