changed distance filter to return related values