Electron cooling in the D region