fixed energy usage function