distinct is needed to quiet up some joins