fixed ranking model
pep8