update thermal functions