function2Allocator