changed some bits on index