removed the Reduction.stack method because the Stack class is now deprecated