update to memory simulation.