debugging sweep phase