added quadratic energy gauge