replacing electron->d0 with electron->dB