used distinct and maximum kep separate