generalize blockindices