weight type changed from Double to Int