handled large allocations and free