a successful sweeping method