updated implementation of allocator - delete non-useful function