The efficiency of Carnot cycle depends upon