add sum of weight raw