wrong division in sweepirgeneration