mem can return correct result now