edited model.php