distinct and nested distinct work now