handle negative temperatures