changed energytermtype to double