refactor ranking directive