bottom to top energy with magnetic field done