generate rank