out the pipe with out the termostat and into the pipe with the thermostat, when its open, when its closed it flows past the therostat from the pump
you want the radiator hose from the bottom of the radiator to go to the thermostat. and the hose without the termostat to go to the top of the radiator.