used for thermal compensation