added a module of memory management