check reduce, w=n