change update_rating for works