converts weights before saving to food table