working on heating calculation