making use of temperature dependence of optical properties