updated an index