control of energy consumption