add memory setting