fixed Mem functions