Update weight.php