Change ratings to directive