working on local allocator