on the cooling side, heat is taken up to boil the refrigerant from a liquid to a gas. then the fluid moves to the heating side.there, the compressor forces the refrigerant back to a liquid again. this makes it give up its heat. so heat has moved from the cooling side to the heating side. then, the cycle repeats.