finally the ranking algorithm is inplace