rules of ranking