fixed ratings function