as $position => $rating. you don't need $i