added error handing for if there is no rating in the profile