added unnecessary code from class method all_ratings