category switch working