trying to fix allocations