Rewrote index