added top(ranked) and index function + score(points) calculation