energy_val call in doublePen