added the global ranking functionality