*698 Opinion
Following a trial by jury defendants Ervin and Bradford were convicted of violating Penal Code sections 21 1 (robbery); 245, subdivision (a) (assault with a deadly weapon); 245, subdivision (b) (assault with a deadly weapon on a peace officer); and 12020 (possession of a sawed-off' shotgun). A third co-defendant, Brown, was charged with the same offenses but the jury was unable to reach a verdict on any of the charges against Brown and a new trial was ordered for him.
Prior to trial defendants Bradford and Brown moved to suppress evidence under Penal Code section 1538.5. Defendant Ervin did not join in the motion to suppress. After a hearing (he motion to suppress evidence was denied. Defendants" primary attack on appeal is aimed at the denial of the motion to suppress, defendant Bradford contending the court should have granted the motion to suppress while defendant Ervin contends he had inadequate representation because his counsel failed to join in the motion to suppress.
Statement of Facts
On August 1, 1969, shortly after 10 a.m., Edward Avanzino withdrew $29,550 from his bank to-be used for the purpose of cashing payroll checks at his liquor store in San Francisco. Fie proceeded from the bank to the store and was about to enter his store when he- was confronted by three gunmen carrying shotguns and a pistol. Avanzino identified the men carrying the shotguns as defendants Bradford and Ervin. The gunmen took the cash, knocked Avanzino to the ground and fired a pistol shot. Upon arising Avanzino observed the three enter a Mustang automobile and take off'. He immediately ran to his own vehicle and proceeded to chase them. As Avanzino pursued the Mustang, shotgun blasts were fired at him by the occupants, and pellets hit the windshield of his vehicle.
Meanwhile Police Officers Busalacchi and Adams, who were on patrol duty in the general area of the robbery, received a radio call advising them of a robbery at Avanzino's liquor store. Shortly thereafter these officers observed the Mustang travelling at a high rate of speed, followed by a vehicle which they recognized as belonging to one of the owners of the liquor store. The officers joined in the chase.
Officer Busalacchi observed four people in the Mustang during the chase, one of whom leaned out of the car and fired approximately four shots from a handgun at the pursuing police vehicle. The high-speed chase continued *699 for several minutes until the Mustang finally came to a halt in the 1100 block of Palou Avenue. At this point two individuals alighted from the Mustang and one of them, later identified as Ervin, levelled a handgun at Busalaechi and fired two shots. The officer returned the fire and in the ensuing melee Officer Busalaechi was struck by a shotgun blast fired by defendant Bradford. After these shots defendant Bradford was seen running across the street toward a building identified as either 1050 or 1060 Palou. Officer Adams attempted pursuit of Bradford but lost sight of him and returned to his police vehicle where he radioed for assistance and an ambulance for his wounded partner, Busalaechi.
In the meantime the Mustang, with the remaining occupants, took off from the 1100 block of Palou Avenue and once again Edward Avanzino pursued it. Approximately one block away at 1055 Oakdale, Avanzino’s vehicle collided with the Mustang broadside. Avanzino saw two men exit from the Mustang. One of them identified as defendant Ervin pointed a shotgun at Avanzino and then disappeared into a building at 1055 Oakdale Avenue with his companion.
An array of police officers responded to the call for assistance; several went to the area of the 1000 block of Palou Avenue while others went to 1055 Oakdale. In the area of the 1000 block of Palou a search by the officers revealed an expended shotgun casing and empty cartridge on the sidewalk, a shotgun lying behind a hedge at 1040 Palou and a portion of a shotgun barrel outside 1030 Palou. A search of the inside of the premises at 1030 C Palou disclosed a sawed-off shotgun, a card bearing the name of defendant Bradford and a coat similar to that worn by a gunman wielding the shotgun with seven live shotgun shells in a pocket.
Other officers arriving at 1055 Oakdale were told by Avanzino that suspects had run into the building at 1055 Oakdale. Officers entered these premises and discovered defendant Ervin in the bathroom and Brown lying under a bed. Shotgun shells were also found by the officers in these premises.
Questions Presented
1. Did the lower court err in denying defendant Bradford’s motion to suppress evidence?
2. Was defendant Ervin denied effective aid of counsel by the failure of his attorney to join or participate in the motion to suppress?
3. Was the evidence sufficient to support the convictions of defendants for assault with a deadly weapon?
*700 I
Defendant Bradford claims that the search of his apartment at 1030 C Palou was illegal as the police had no specific information that would justify a search of his apartment. He also claims the illegal search produced incriminating evidence which was so prejudicial to his case that the judgment should be reversed. The People contend the search without a warrant was justified under the emergency circumstances that existed.
Prior to the trial defendant Bradford made a motion to suppress the evidence under Penal Code section 1538.5. This motion was denied and defendant Bradford now seeks a review of the validity of the search and seizure pursuant to subdivision (m) of section 1538.5. Such review is made on .the basis of the record made at the special hearing of the motion pursuant to section 1538.5 and may be sought notwithstanding there was no objection to the introduction of the seized material at the trial.
(People
v.
Medina
(1972)
In reviewing a determination of a trial court on a Penal Code section 1538.5 motion, the function of the reviewing court is to determine whether there was substantial evidence to support the trial court’s findings.
(People
v.
Superior Court, supra, 9
Cal.App.3d 203 , 209;
People
v.
Superior Court
(1970)
At the Penal Code section 1538.5 hearing the People introduced as ' evidence the transcript of the grand jury proceedings in the case which included testimony by Avanzino, Officers Adams, Magnani, Wydler, Dagitz, Inspector Fogarty, and John Williams, a criminologist in the police department. In addition, Magnani, Fogarty, and Wydler testified in person at the hearing by prearrangement with defense counsel so that they could be cross-examined. Since it is upon this evidence that the denial of the 1538.5 motion *701 must be justified, the specific information elicited at the hearing is summarized below.
Avanzino’s testimony was to the effect that he chased the car with four suspects in it, they shot at him during the chase, and several of them disappeared into the building at 1055 Oakdale. He said nothing about the building at 1030 Palou. Busalacchi added the information that the shootout was on Palou Avenue with a handgun and shotgun, but said nothing about the particular building in question. Officer Adams said he was shot at in the vicinity of 1067 Palou and saw one of the suspects pause on the grass behind 1066 Palou and then disappear between 1040 and 1066 Palou. Officers Dagitz and Williams said nothing about the shootout or search at 1030 Palou except that the area was a federal housing project with several apartments per floor. Other testimony was to the effect that there were four apartments per floor or possibly 8-10 units per building. Fogarty’s testimony before the grand juiy indicated that there were four apartments per floor or possibly 8-10 units per building. Fogarty also testified that he had conducted. a search at 1030 Palou and found a shotgun under a mattress, and a card with Roy Bradford’s name on it in a desk or desk drawer.
The information elicited during the cross-examination of Magnani, Wydler and Fogarty at the hearing was as follows: Officer Magnani testified he received a radio communication from the officers that there had been a chase and shootout that ended in the 1000 block of Palou. The only specific information, he received was that several of the suspects were in the building at 1055 Oakdale.
Officer Wydler testified that he responded to the location where the car was abandoned, and although he went to 1055 Oakdale, he never went to 1030 Palou.
Officer Fogarty stated that he went to the command post at 1030 Palou “where the Captain was informed by whoever was in charge of the command post at that location that the suspects had fled into the building at [1030].)” He later testified in response to a question as to why he had gone into the building that: “We were told that the suspects had gone in there.” Fogarty did not indicate who had so informed the person in charge of the command post. He then proceeded to 1030 Palou.
•v
When the question of the legality of a search and seizure is raised, the defendant makes out a prima facie case when he establishes that private premises were entered or a search made without a search warrant and the burden then rests on the prosecution to prove that the search was reasonable. I
(People
v.
Edwards,
Courts have often recognized that the “ ‘exigencies of the situation’ ” may justify a warrantless search which might have been unreasonable had emergency circumstances not existed.
(Warden
v.
Hayden
(1967)
California applies these principles and follows the rule that the exigencies of a situation may justify a warrantless search which might have been unreasonable had emergency circumstances not existed.
(People
v.
Baird
(1971)
The question becomes whether there were exigent circumstances which justified the search without a warrant. In the case at bench, the exigent circumstances are amply demonstrated by the facts preceding the search by the police. An armed robbery and assault had occurred, followed by a high-speed pursuit of the suspects by a police vehicle. During the course of this pursuit shots were fired at the police by the fleeing suspects. The chase terminated when the defendants halted their vehicle, alighted, and engaged in a *703 gun battle with the police officers. As a result of this battle one of the officers was wounded by shotgun fire. The defendants’ automobile departed the scene, leaving behind appellant Bradford who was armed with a sawed-off shotgun. Bradford ran across the street and disappeared between buildings adjacent to the scene on Palou Avenue. Inspector Fogarty, the searching officer, arrived at the scene within minutes and was informed by a police captain, who in turn had been informed by the head of the command post, that the suspect fled into 1030 Palou.
Although the evidence did not indicate whether the person in charge of the command post, presumably another policeman, had personally seen the suspects run into the building or whether he had been given this information by another person, it was not unreasonable under the circumstances of this fast moving situation for the searching officers to rely on the information given them regarding 1030 Palou.
(People
v.
Baird, supra,
Defendant Bradford points out, however, that the building at 1030 Palou was an apartment house and that his unit was one of several apartments in the building. He asserts the police had no specific information linking his particular unit, Apartment C, to any offense or any offender. The trial evidence, although not the 1538.5 hearing evidence, indicated the officers searched each of the six apartments on the ground floor of 1030 Palou after receiving permission of the occupants but found nothing, and then proceeded to the second floor where they searched five of the six apartments also with the occupants’ permission. The sixth apartment on the second floor was C and the police made a forced entry into it. They discovered no one present and then began a more detailed search which disclosed a sawed-off shotgun, a card bearing defendant Bradford’s name, and a coat with seven shotgun shells in a pocket. Defendant Bradford argues the systematic search of each unit in the complex constituted a general search that could not be justified under the circumstances.
We answer this argument by pointing out once again the pressing emergency that existed. Under circumstances where an armed robber who had demonstrated a great proclivity for shooting people, had taken anparent refuge in an apartment building with 8 to 12 units, it was not unreasonable for the police in hot pursuit to have conducted a search of each unit for
*704
suspects and weapons. “The law recognizes that fresh pursuit of a fleeing suspect who has committed a grave offense and remains dangerous to life and limb may constitute ‘exceptional circumstances’ sufficient to justify a search without a warrant.”
(People
v.
Smith
(1966)
Another significant circumstance that was known to the police and which intensified the dangerous situation was the fact that there were at least three and possibly four gunmen involved in the escapade. In
Warden
v.
Hayden, supra,
Admittedly the systematic search in question was an invasion of privacy which would be unreasonable and thus violative of the Fourth Amendment in the absence of some exigent circumstances. HdWever, as we have noted the need for fast and effective law enforcement was overwhelming and it was imperative that the officers conduct an immediate and thorough search of the area for persons and weapons involved in the highly volatile situation.
In testing the reasonableness of the search we might ask ourselves how the situation would have appeared if the fleeing gunman armed with a shotgun had shot and possibly killed other officers or citizens while the officers were explaining the matter to a magistrate.
As the court stated in
People
v.
Superior Court,
II
Defendant Ervin contends that the failure of his counsel to join in the 1538.5 motion deprived him of a defense, thereby rendering his counsel ineffective. Respondent argues that since the search and seizure were valid, there is no showing that the failure of defendant’s counsel to join in the motion to suppress withdrew a crucial defense or reduced the trial to a farce or sham.
The record indicates that Ervin’s’ counsel joined in the original motion to suppress which was subsequently withdrawn and a 995 motion substituted instead. His counsel did not, however, join in the second 1538.5 motion made by Brown’s counsel and joined in by Bradford’s counsel. The question is whether this failure indicates that Ervin’s counsel was ineffective.
Under the applicable standards, representation by counsel is said to be ineffective when his lack of diligence or competence reduces the trial to a “farce or sham.”
(People
v.
Ibarra
(1963)
We note that the validity of the search and seizure issue was tried as to defendant Brown and the same facts relevant to a determination of that search and seizure are applicable to defendant Ervin. Those facts as determined at the 1538.5 hearing were that Avanzino. saw two of the suspects run into 1055 Oakdale and then saw defendant Brown helped into that same building by two bystanders. There was testimony that Avanzino then told the officers that he had chased the robbers and that “they ran into this building.” The officers knew that the buildings were multi-level ones with four apartments per floor or possibly 8-10 units per building. The officers looked in the corridors of 1055 Oakdale and saw no one so they began searching all the apartments. They entered an apartment and found
*706
defendant Ervin in the bathroom. A more thorough search was then begun and defendant Brown was discovered hiding under a bed. When Brown was discovered he stated: “Okay, you’ve got me, please don’t shoot.” The defendants were then arrested and in the ensuing search shotgun shells were found in plain view. This seizure of objects in plain view in the area where the police had a right to search for their own protection was valid under
Chimel
v.
California
(1969)
We note here that Ervin’s counsel did join in a 1538.5 motion at one point, thereby indicating an awareness of his right to object to the evidence. For some reason not readily apparent from the record he then decided not to join in the motion finally argued. This action seems to demonstrate that counsel was using his professional judgment and was adopting such tactics and strategy as seemed best suited to the interests of his client. (See
People
v.
Rodriguez
(1969)
The situation here finds a close parallel to the case of
People
v.
Berumen
(1969)
Ill
Finally both appellants contend the evidence is insufficient to sustain their convictions under Penal Code section 245, subdivision (a). In support of this contention both defendants argue that the shot which constituted the 245, subdivision (a) violation was fired from
a pistol,
whereas they were identified as being armed with shotguns. Their assertion that they could not reasonably be said to have aided and abetted the third
*707
party involved in the robbery who fired the pistol shot is without merit. Having engaged with that person in a criminal enterprise, armed with dangerous weapons and knowing that the third party involved was so armed, appellants have aided and abetted in that crime and are guilty as principals. (See
People
v.
Durham
(1969)
Defendants also contend the evidence indicated the shot was not fired at Avanzino but was fired into the exterior of the building merely as a warning and with the intent to frighten Avanzino. In
People
v.
Marceaux,
In considering a claim that evidence is insufficient to sustain a viction we are bound by the rule that the test on appeal is whether there is substantial evidence to support the trier of fact.
(People
v.
Mosher
(1969)
The judgments are affirmed.
Molinari, P. J., and Elkington, J., concurred.
Appellants’ petition for a hearing by the Supreme Court was denied January 24, 1973.
Notes
Assigned hy the Chairman of the judicial Council.
In
Dorman
v.
United States, supra,
