rewriting energy