work on case-insensitive switch