This gamma ray may be thought of as a sort of "internal bremsstrahlung " that arises as the emitted beta particle (electron) interacts with the charge of the proton in an electromagnetic way. In this process, some of the decay energy is carried away as photon energy. Gamma rays produced in this way are also a minor feature of beta decays of bound neutrons, that is, those within a nucleus.