sweeper: removing three node-methods and reinline the logic into sweep