end_rank update