The impurities formed during the laboratory preparation of chlorine gas are removed by