reuse index vector already calculated.