Reduction of impurities in the source gas