refactored Ranking with Kind