implemented top ranking system