cleanup reduce