Shielding is used to prevent the escape of neutrons from a reactor. A moderator is used in the reactor to undergo collisions with a neutron. The neutrons produced in fission collide with the molecules of the moderator, imparting their kinetic energy on them. This generates heat in the reactor. (Temperature is the measure of the average random molecular kinetic energy of a substance).