getWeight and putWeight implemented for all