added new-rating function