update to memory