implmented score from index functions