created unit switch setting.