Appellant Darwin Haselhuhn was found to be in contempt of court and sentenced to three months’ imprisonment for refusing to be sworn and to testify when called as a witness in a criminal trial. On appeal to this Court, appellant in essence questions whether the district court’s finding and sentence are proper.
We reverse.
Appellant was convicted of aggravated robbery and sentenced to a term of not less than eight years nor more than twelve years in the Wyoming State Penitentiary. During the pendency of his appeal to this Court, appellant was called as a witness at the May 1986 trial of his co-defendant, Rick Prime. In chambers on May 14, 1986, the day before appellant was to testify, the State offered appellant full use immunity in return for his testimony. More specifically, the State informed appellant that, if he agreed to testify as to his involvement in the robbery, none of his statements would be used “in connection with any future proceeding regarding the armed robbery.” Counsel for appellant advised the State and the court that he did not believe the offer of immunity was broad enough to preclude future federal prosecution and, consequently, that appellant would assert his Fifth Amendment privilege against self-incrimination and refuse to testify. Upon considering the arguments presented, the district court stated in relevant part:
“I’m going to grant [appellant] immunity and order him to testify. And if he refuses to testify, he’ll be found in contempt of Court and remanded into the *388custody of the Sheriff. * * * I order him now to answer the questions.”
The following morning, the State called appellant to the witness stand. His attorney was not present in the courtroom, and the following colloquy occurred:
“THE COURT: Have you been sworn?
“[APPELLANT]: No, I haven’t, Your Honor. I decline to be sworn in and I decline to answer any questions.
“THE COURT: You’ll be sworn in, mister. Now, raise your right hand.
“[APPELLANT]: (No response)
“THE COURT: Raise your right hand.
“[APPELLANT]: I decline to be sworn in, Your Honor.
“THE COURT: All right. I find you in direct contempt of Court. I remand you to the custody of the Sheriff to be held there until you answer and/or [be] sworn or sentenced otherwise * *
The trial concluded on May 19,1986. On May 20, 1986, five days after he had been held in contempt, appellant appeared with counsel before the district court. The following discussion took place:
“THE COURT: * * * This is a continuation of proceedings in Criminal Docket No. 84-47, the State of Wyoming versus Rick Prime. Let the record show that [appellant] is standing before the Court * * * with his attorney, Mr. William Flynn * * *. [Appellant], you were in this court earlier and granted immunity on the condition that you testify in the case against Mr. Prime. When the time came for you to so testify, you even refused to be sworn, much less testify. At that time, I found you in direct contempt of Court and remanded you into the custody of the sheriff until you answered or until I disposed of the case. This case wasn’t over until — the verdict wasn’t returned until yesterday and the case has remained open, so I can dispose of it. Do you know of any reason why I shouldn't sentence you now?
“MR. FLYNN: Yes, Your Honor. * * * I would like clarification for myself at this point if the Court’s proceeding under Sub-Section A or B of Rule 41 [, W.R. Cr.P].
“THE COURT: Let me see the rule. Why didn’t you bring this up before we started? Well, it was my intention, certainly, when I found him in contempt to proceed under Rule 41 A. Now, having been given the opportunity to change his mind about testifying — but I couldn’t —I had to wait until the case was submitted to the jury and the jury returned a verdict, because he had all that time within which to come in and testify. I had to wait until it was finished when he had the chance. Now, it’s finished. It’s my intention to sentence him under Rule 41A.”
Upon clarification of the procedure, counsel for appellant requested a continuance in order to prepare a defense to the contempt charge. The district court granted the request, and a second hearing was held on June 9,1986. Proceeding on the belief that appellant was found in contempt for refusing to testify, counsel for appellant again asserted that appellant was entitled to claim his Fifth Amendment right and refuse to testify because, even assuming the State had the authority to offer immunity, the offer did not go far enough. Counsel for appellant also asserted that appellant’s refusal to be sworn and to testify was not intended to be disrespectful or disruptive but merely to protect his right against self-incrimination. The district court responded to counsel’s argument as follows:
“The Court was aware, of course, even after granting the immunity that he was still going to not testify, and I would have permitted that. But he refused even to be sworn, and I see no justification for that, and that’s why I found him in contempt of Court.” (Emphasis added.)
The district court then pronounced sentence of a term of three months to be served consecutively to appellant’s existing sentence for aggravated robbery. The order of criminal contempt filed on June 30, 1986, provided as follows:
“THIS MATTER having come before the Court during the Jury Trial of the above-entitled case, and Darwin Haselhuhn *389having been granted full use immunity for anything that he may say upon the witness stand, and the same Darwin Ha-selhuhn having been called into Court as a State’s witness and having been asked by the District Court Judge to be sworn, and having refused repeatedly to take the oath, and thereby being found in criminal contempt of Court; the Court having heard the argument of Counsel and being fully advised in the premises, proceeds to pronounce sentence as follows:
“IT IS THEREFORE ORDERED that the said Darwin Haselhuhn serve an additional three (3) monthsf] sentence to be consecutive to the present sentence being served on the charge of Aggravated Robbery, said sentence is to be served in either the Wyoming State Penitentiary, at or near Rawlins, Wyoming, or in the Sweetwater County Jail, in Green River, Wyoming.” (Emphasis added.)
On appeal to this Court, appellant claims not only that these particular proceedings were improperly conducted but that the law relating to contempt is, in general, confusing and unclear. We limit our review to the propriety of these particular proceedings.
In United States v. Powers, 629 F.2d 619 (9th Cir.1980), the Ninth Circuit Court of Appeals considered the question of whether a contempt judgment is invalidated by a trial court’s confusion about the form of the contempt proceeding. In that instance, the Ninth Circuit affirmed the contempt judgment for the reason that the trial court’s confusion was not prejudicial to the defendant. However, the Ninth Circuit warned that “under different circumstances we might find a contempt sanction invalid due to the confusion of the district court.” Id. at 629.
In United States v. Powers, as in the present case, the defendant was called as a witness in a criminal case. When called to the stand to testify, he refused to answer any questions on the ground that his testimony might incriminate him. The government subsequently offered the defendant use immunity to which his attorney objected on the ground that it was too narrow. The court accepted the grant of immunity and warned the defendant that his continued refusal to testify could result in a judgment of contempt and a jail sentence. The defendant’s attorney asked for a clarification of the court’s contempt powers, and the court stated:
“ ‘The- [cjourt notifies the defendant that the court would incarcerate the defendant for the balance of the trial and set a hearing date regarding the contempt charges and possible sentence as a result thereof.’ ” Id. at 621.
The defendant’s attorney then requested clarification as to the nature of the proceeding, and the court responded that it was a civil contempt proceeding but that it would be conducted in accordance with the procedural requirements set forth in Rule 42, F.R.Cr.P. The defendant then was recalled to the stand, and he again refused to testify. The court questioned him to make sure he understood the consequences of his refusal to testify, and, when it became clear that he did understand and still would not testify, the court found him in contempt.
The focus of the court’s inquiry in United States v. Powers was the trial court’s confusion as to whether the contempt proceeding was civil or criminal in nature. The focus of our inquiry goes further. As demonstrated above, despite its confusion over the types of contempt proceedings, the trial court in United States v. Powers fully and clearly explained to the defendant the nature and effect of a contempt judgment. The defendant was told by the court repeatedly that his refusal to testify could result in a judgment of contempt and a jail sentence. The defendant had an attorney present throughout the proceedings to seek clarification of the consequences of his refusal to testify. He was told explicitly that, if he refused to testify after being granted immunity, he would be incarcerated for the balance of the trial and might be subject to an additional sentence following a contempt hearing. He was questioned fully as to his understanding of the consequences of refusing to testify. Only when it became clear that the defendant fully *390understood those consequences did the trial court find him in contempt.
The present case presents a sharp contrast to United States v. Powers. Although appellant was cursorily warned in chambers that he would be found in contempt if he refused to testify the following day, no attempt was made to fully explain either the nature or the effect of a finding of contempt. Unlike the defendant in United States v. Powers, appellant was not informed, correctly or incorrectly, whether the proceedings were civil or criminal in nature until long after he was found in contempt. Unlike the defendant in United States v. Powers, appellant was not told that, if he refused to testify following the grant of immunity, he would be incarcerated for the balance of the trial and then brought before the court for a hearing and sentencing on the contempt charge. Unlike the defendant in United States v. Powers, appellant did not have counsel present throughout the proceedings to seek clarification on his behalf of the express consequences of his refusal to testify.
Of even greater significance in the present case is the fact that appellant did not have an attorney present to advise him how to proceed in asserting his Fifth Amendment right. As a consequence, when called to the witness stand, appellant refused even to be sworn. The totality of the circumstances demonstrates clearly that appellant's refusal to be sworn was not an attempt to defy the court’s authority but represented instead appellant’s uncoun-seled notion that, by refusing to be sworn, he was merely exercising his right against self-incrimination. In contrast to United States v. Powers wherein the trial court carefully questioned the defendant to ensure that he understood fully the consequences of his refusal to testify, in this case the district court made no attempt to question appellant about his refusal to be sworn or his understanding of the consequences of that refusal. Instead, the court angrily slapped appellant with a contempt charge and dismissed him from the courtroom. At the very least, the district court should have asked appellant if he was attempting to assert his Fifth Amendment privilege and, if so, first to be sworn and then claim the privilege on the record.
Appellant’s refusal to be sworn becomes of even greater import when viewed in light of the district court’s subsequent turnabout regarding the precise act which constituted contemptuous conduct. The district court's initial position was that appellant would be found in contempt if he refused to testify, which position the court apparently adhered to through the May 20 hearing. At the June 9 hearing, however, the district court suddenly shifted its position and announced that appellant would have been permitted to not testify had he simply taken the witness stand and declined to testify after being sworn. The final order of criminal contempt reflects the court's shift wherein it states:
“[Appellant] having been called into Court * * * and having been asked by the District Court Judge to be sworn, and having refused repeatedly to take the oath, and thereby being found in criminal contempt * * (Emphasis added.)
As a consequence, neither appellant nor his attorney was clearly apprised of the true nature of the charge until after a defense already was prepared on the basis of appellant’s refusal to testify.
It is undisputed that a court’s power to punish for contempt is a necessary and integral part of the independence of the judiciary. Anderson v. Anderson, Wyo., 667 P.2d 660 (1983). However, the power to punish for contempt is not without limitation. United States v. Powers, 629 F.2d at 624. Because in this particular case the totality of the circumstances demonstrates that the court failed to adequately inform appellant of the nature and effect of a finding of contempt, the contempt judgment cannot stand.
Reversed.
THOMAS, J., filed a specially concurring opinion in which URBIGKIT, J., joined.