trying more dynaic allocations to see if that fixes it