Updaing index