Some corrections applied to mem functions[