preparing ranking system