update Model.php