Removed extra for loop found in sweep method