cleanup sygs sweep code.