Carnot cycle has maximum efficiency for