update mem with args