optimized indexCopy