adjust api distinct.