storing the average rating