added error codes to screen