change rank function