reconstruct index