fixing the error output