Update attr_model.php