update memories