support boolean vectors.