setup_rank_data function

Setup rank data