Heavy flavor production with gluon bremsstrahlung