updated numerical conversion for rating