However, this does not account for spin-orbit coupling.
The energy of a level depends strongly on the alignment of spin and orbit with the anti-parallel spin-orbital connection having a higher energy than the parallel case.