failure in temperature calculatiom