I had the insight that photons are created from the discarded momentum of electrons and that the nucleus of the atom is involved in the process. It happens as follows: the electron senses the electromagnetic field of the atom. If there is an empty orbital the electron instructs space to copy it into this orbital while discarding momentum. The electron also instructs space to copy all of a 2D slice of space into a Riemann half-sphere-half-antisphere and injects the excess momentum into it. This becomes the photon. Now there are two electrons but just for 1 planck time. The first electron then instructs space to delete it. The whole process takes 3*planck time. Space deletes the electron by transferring all its properties into the other electron and the photon and then expanding the Riemann half-sphere-half-antisphere onto a 2D slice of space. While the momentum is being transferred to the protophoton it has nonzero dp/dt, so there is a force on it. The protophoton exists for 1 planck time and is accellerated by the next planck time to the speed of light, undergoing near infinite acelleration.