tweak the reduction algo