fix carryWeight function missing