The different effect of electron-electron interaction on the spectrum of atoms and quantum dots