deleted the memory class