added error codes showing