refactor sweep