updating weight field to be number