you have this back to front.  return 0 means return 0 errors so it is the good path.