refactor addWeight use