modified result set for ranking.