Why do we need to re-write the indexes?