refactor Rank