change indices to ii