compress the rating script