changed method that organizes ranking