update ranking.py