change domain object to domain