change return key to sep by memtype