changed mem.c again...