full reduction with weight sum tested
tests on weighted sum passed