changed the way heatvalue script works