improving linearRankingSelection