halogenerator working