added REST call for ranking
implemented logic, not rlly good yet, need to refactor