refactory ranking
refactoring ranking