fixed deprecation notice for domain variable