cleanup reduce/set.union usage