delete the memory.h and not use gc