index update and memory-debug