refactoring
added ranks to the view