ranking generation script