Loss and replenishment of electrons at middle latitudes and highBvalues