added the error code