index updated according to instructions