changing more things to _get_ranking