add memory model