move energy.go to tempCrit