use sweep to fix negative cell counts