— The defendant was tried and convicted of the crime of murder of J. C. Brady on the fifth day of July, 1901, and sentenced on December 30, 1901, to the state prison at Boise City for the period of his natural life. The defendant applied for a new trial, which was denied by the court. This appeal is from the judgment and order denying a new trial. Fourteen alleged errors are assigned, touching the admission and rejection of testimony, the insufficiency of the evidence to sustain the verdict, the giving of certain instructions to the jury, and the overruling of the motion for a new trial.
The following facts appear from the record: That the deceased, J. C. Brady, at the time of the homicide, was the probate judge of Kootenai county; that in the summer of 1899 the defendant was brought before him on a charge of insanity ; that, after the hearing, Judson Brady consigned the defendant to the asylum for the insane at Blaekfoot, Idaho, and thereafter appointed one Charles L. Sherwood as guardian of the property of the defendant. Several months after the defendant had been an inmate of said asylum, he escaped therefrom, and in a few days thereafter was apprehended at Ogden, Utah, and returned to the asylum, and remained an inmate there until the month of June, 1900, when he again escaped, and made his way back to Kootenai county, to 'his home or farm, near Rathdrum. The superintendent of the asylum wrote to the sheriff of said county of defendant’s escape, and requested the sheriff to keep “an eye on him”; that, if he showed symptoms of a recurrence of his trouble, to take him in charge and to notify him (the superintendent). It also appears that after the last-*612mentioned escape the defendant was in and about Rathdrum from about the 1st of June to the 5th of July, 1901, and that on the night of the latter date, at about half-past 10 o’clock, the homicide occurred. It appears from the writing introduced on the trial as the dying declaration of Judge Brady that the defendant entered the judge’s office at Rathdrum about the time and date last above mentioned, and said, “How do you feel to-night ?” The judge answered: “Pretty fair. How are you ?” Defendant then said, “Take that in your old face,” and pulled out his pistol and fired. The defendant then put out the light and left the office. The ball struck the judge in the face, under the right eye, and went almost horizontally backward, and “lodged against the brain.” “The base of the skull was penetrated and fractured.” It appears that the deceased, after receiving the shot, got up out of his chair, went to the door, and partly fell down the front steps, where he was picked up. The following morning, July 6th, the deceased was taken to the Sacred Heart Hospital at Spokane, Washington, and died there about half-past 6 o’clock on the morning of the 17th of July, 1901, from the effect of said gunshot wound. The sheriff of Kootenai county and his wife were occupying a room over the jail, and about fifty or sixty feet from the office of the deceased, at the time the shooting occurred, and had just retired for the night when they heard the shot. On hearing the shot, they both got up, and looked out of different widows toward the judge’s office. The sheriff himself testified that he saw a man in said office immediately after the shot was fired, and, in his opinion, it was the defendant. The sheriff’s wife testified that she saw a man dart around the courthouse, and stop an instant, and, on tiptoe, peek into Judge Brady’s window, and that man was the defendant. Another witness testified that about half-past 10 -o’clock on July 5, 1901, he was told that Judge Brady had been shot, and that he went to the sheriff’s office, and on his way there, and about seventy-five yards therefrom, he met the defendant coming from said office. It appears that the defendant traveled on foot from Rathdrum to Spokane, Washington, between the night of the 5th of July *613and the 9th of that month; that he did not travel on the highway, hut went across fields and through the timber, and slept at least one night in a strawstaek; and that he was arrested in that city on the latter date. It also appears from the evidence that the defendant imagined certain persons were trying to get his property from him, and that sending him to the insane asylum was in pursuance of that purpose, and that Judge Brady and others were connected therewith. After his return therefrom he made threats that he was going to get even with them, and particularly with Judge Brady; that he had been robbed, and wanted to get the property hack; that his guardian had sold out and got away from there. Those matters evidently greatly agitated him and preyed upon his mind. The defendant pleaded “Not guilty,” and interposed the defense of insanity. The jury found from all of the evidence that he knew right from wrong at the time the homicide was committed, in their verdict of guilty of murder in the séeond degree.
Under the first alleged error assigned, it is contended that the court erred in permitting the prosecuting attorney to indorse the names of certain witnesses on the information after the jury had been sworn to try the case. The record shows that after the jury had been impaneled, and before any witnesses were sworn, the prosecuting attorney moved the court for permission to indorse other names of witnesses on the information, and in support of such motion presented his affidavit setting forth that he did not know of said witnesses at the time of filing the information; and, upon the showing made, the court granted the motion. It is contended that the court erred therein, for the reason that by Session Laws of 1899, page 125, section 2, it is provided that the names of all witnesses shall be indorsed upon the information before the trial. Technically, the trial began when the impaneling of the jury was begun. But it is not contended that defendant was in any way prejudiced by said action of the court. The evident purpose of such law is to inform the defendant of the names of the witnesses who are to testify against him, so that he *614may have an opportunity to meet and controvert their evidence. And had the defendant asked for time for that purpose, the court, no doubt, would have given it to him. The supreme court of Montana, under a similar statute, has decided that a ruling by a trial court like the one under consideration was not error. (State v. Schnepel, 23 Mont. 523, 59 Pac. 927; State v. Calder, 23 Mont. 504, 59 Pac. 903; State v. Sloan, 22 Mont. 293, 56 Pac. 364.)
At the time the dying declaration of Judge Brady was offered in evidence, counsel. for appellant asked permission of the court to introduce testimony to show that at the time Judge Brady made said declaration he was not competent to make the same. The request was denied by the court, which ruling is assigned as error. We think it would have been proper, and perhaps the better practice, for the court to have permitted counsel then and there to introduce any competent evidence to show that deceased was not in a proper condition of mind or competent mentally to make said declaration, not believing that death was imminent — that dissolution was near at hand — at the time he made it. But the court evidently concluded that the proper time for defendant’s counsel to introduce testimony on that point was after the state had put in its testimony and rested. And we do not think the defendant was prejudiced by the action of the court in that regard, as ample opportunity was • given counsel to produce all of the testimony he desired to introduce on that and on all other material points.
Dr. Givens, who was medical superintendent of said insane asylum while the defendant was an inmate there, testified on the trial in behalf of the defendant; and, from his testimony contained in the transcript, I am unable to ascertain whether a single hypothetical question including the actions of the defendant just before, at, or just after the homicide, as shown by the evidence, was put to said witness. He did, however, testify that most of the time that defendant was at the asylum he had pretty clear ideas of right and wrong.
*615Dr. Wenz also testified for the defendant, and testified as follows: "If it was shown by the evidence that Wilmbusse on the fifth day of July of this year had entered the office of Judge Brady between the hour of 10 and 10 :30 o’clock at night, and remarked to Judge Brady, ‘How do you do?’ and was answered: ‘I am feeling very well. How do you do?’ — and then Wilmbusse had produced a weapon and discharged it in the face of Judge Brady then and there, I should think the man knew whether he was doing right or wrong.” This was substantially all of the evidence offered by defendant’s counsel to show that the defendant was insane, and not able to distinguish between right and wrong, at the time he fired the fatal shot.
Appellant contends that the court erred in permitting witness Callahan to answer the following question: ‘‘You may state what he said to you at that time?” It appears that said witness had testified that, outside of short intervals, he had been constantly present with deceased during his last sickness; that he had a conversation with him about a week before he died; that he, in that conversation, told witness how he felt in regard to hope of recovery. And at that point in his testimony the question above set forth was asked the witness. The court permitted the witness to answer over the objection of counsel for appellant. The witness answered as follows: “I says, ‘Brady, old boy, how are you feeling?’ He says to me, ‘John, it’s all off with me.’ Those were the words he used.” Thereafter the witness proceeded to testify that the deceased told him substantially the same facts as are set forth in said d}dng declaration. The evidence, as a whole, shows that the deceased had no hope whatever of recovering from said wound from the time he was shot up to the moment of his death, and was expecting dissolution at almost any moment; that he made said statement or declaration believing that he would not recover from said wound, and made it under that belief. That being true, it was not error to admit it in evidence.
Within a few moments after the fatal shot was fired, the deceased told Sheriff Dyer that the appellant shot him, which *616statement was properly received as a part of the res gestae. (State v. Gilbert, ante, p. 40, 69 Pac. 62. See, also, State v. McGann, ante, p. 346, 66 Pac. 823.)
Another assignment is that the court erred in permitting the prosecuting attorney to testify in regard to the dying declaration, on behalf of the state. It is shown that said declaration was reduced to writing and witnessed by said attorney. He was a competent witness to testify in regard thereto, and as to the mental condition of deceased at the time said declaration was reduced to writing and signed by him. There was no error in permitting him to testify.
It is contended that the court erred in admitting said dying declaration because it appeared that a portion of it had been prepared out of the presence of the deceased. The evidence shows that Judge Brady sent for the prosecuting attorney for the purpose of having him reduce his dying declaration to writing; that before going to the wounded man he drew what he termed the “formal” part of said declaration, and in the presence of the deceased drew the remaining part of it. It is shown that said declaration was read over to deceased after it was reduced to writing, and he signed the same as his dying declaration in the presence of John C. Callahan and James Graham, and requested them to witness the same, which they did in his presence. The fact that the formal part of said declaration was written on a typewriter, out of the presence of the deceased, makes no difference, as the main part of it was written in his presence, and the whole of it carefully read over to the deceased. The court did not err in admitting said declaration in evidence.
The ninth and tenth assignments go to the action of the court in refusing to permit the appellant to show by Sheriff Dyer that on the sixteenth day of July, 1901, and two days after said declaration was made, the deceased was in such condition and frame of mind as to render him incompetent to make a dying declaration, or to know or understand what he was doing or saying. There was no error in rejecting said testimony. The question was as to his mental condition on the evening of July 14th, when he made said declaration, and not *617what it was on the 16th of July, two days after. On the latter date dissolution was rapidly approaching, as it is shown he died at half-past 6 o’clock on the morning of the 17th. He might have been mentally competent on the evening of the 14th, and totally incompetent two days later. The authorities cited by appellant in support of the last assignment of error are not in point.
The giving of several of the instructions on behalf of the state is assigned as error. We have carefully examined them, and find that the instructions, taken as a whole, correctly state the law, and are germane to the issues and evidence — correctly state the law of reasonable doubt and the law with reference to the plea of insanity. We think the jury was justified in finding that the appellant knew that he was committing a wrong, and the difference between right and wrong, at the time he fired the fatal shot, and the court did not err in refusing to grant a new trial.
Some of the minor errors assigned, we have not referred to in this opinion, but we have carefully considered each, and are of the opinion that the judgment must he sustained, and it is so ordered.
Quarles, C. J., and Stoekslager, J., concur.