update --> index