add memory pattern