started error checking for rating