Title: The energy spectrum of electrons and cosmic-ray confinement