added decorator for ratings