added getWeight()