changes to sweep method