further refinements to reduce()  tested good

Much simpler and more efficient :)