uploading pred_ranking function