When the high pressure refrigerant vapor enters the condenser heat flows from condenser to cooling medium thus allowing the vaporized refrigerant to return to liquid state.