rearrange index