case insensitive for setting type