worked on Mem_Init()