migrated domain logic