see comment above, weights needs to be filtered to correspond to xs inDomain