updating index.