replace update sweep with edit