fixed unitialized allocations