fixed the rating system