implement transform_switch
whitespaces