update error states