modify the memory