accept one-hot indices in binary