energy code with loopupdate included

energy code wit