added Energy minimizer