fixed the energy issues
added the old version with the crappy energies