edit getWeight