By filling nitrogen gas above the mercury column, we are in fact increasing the boiling point of mercury. Mercury that can reach boiling point of 356oC, can now measure up to 500oC. Mercury separation in the capillary of the thermometer is filled by nitrogen gas and nitrogen being inert gas can minimize the oxidation of mercury.