fixed energy calculation