add memory params