updates to memory class