starts distance calculation for hot/cold
fixes merge conflict