changes for domain_model.php