changed energy fluctuation calc and heat cap calc