ranking functionality complete