added memory manager