use prefix length in ranking