Substituted temperature function