added error states