init memory.