adde the heatDistance variable