ranking length check