adding memory allocator