with indexWeights