added condition for internal domains