PER CURIAM.
Upon consideration of the motion of Bennie Lee Pearson this court's previous opinion is withdrawn and the following opinion is substituted:
The trial court in the instant case adjudicated Bennie Lee Pearson guilty of second-degree murder with a firearm and unlawful possession of a firearm during the commission of a felony. The court found Pearson to be an habitual and violent offender, and imposed a sentence of fifty years in prison with a mandatory minimum of fifteen years without eligibility for parole. We affirm in part and reverse in part and remand for resentencing.
We agree with defendant's argument that because his conviction for second-degree murder with a firearm and his conviction for unlawful possession of a firearm during the commission of a felony arose out of the same act, the doctrine of double jeopardy barred the later conviction. See Cleveland v. State, 587 So.2d 1145 (Fla. 1991); Sessions v. State, 597 So.2d 832 (Fla. 3d DCA 1992); Davis v. State, 590 So.2d 496 (Fla. 3d DCA 1991); see also Perez v. State, 528 So.2d 129 (Fla. 3d DCA 1988).
Additionally, we conclude no error occurred when the trial judge ordered defendant's sentence enhanced. Based upon our holding in Lamont v. State, 597 So.2d 823 (Fla. 3d DCA 1992), life felonies are subject to enhancement under the habitual offender statute, section 775.084, Florida Statutes (1989). However, reading the habitual offender statute in pari materia with section 775.082(3)(a), we conclude that once the trial court determined defendant should be sentenced to a term of years, forty years was the maximum term of years permitted under the statute. See Ward v. State, 558 So.2d 166 (Fla. 1st DCA 1990); see also Howe v. State, 596 So.2d 1227 (Fla. 2d DCA 1992). Also, the fifteen-year mandatory minimum cannot be imposed because, as stated in Lamont, subsections 775.084(4)(a) and (b) do not apply to life felonies. Lamont, 597 So.2d at 829.
As to the remaining points raised, first, the trial judge properly denied defendant's motion to suppress his statement. Based upon his co-perpetrator's specific identification of the defendant as a participant in the crimes, the surviving victim's statement to police that he believed two men were involved, and the anonymous tip which had also named the defendant, probable cause existed for all officers' actions and defendant's statement was accordingly admissible. See Justus v. State, 438 So.2d 358 (Fla. 1983), cert. denied, 465 U.S. 1052, 104 S.Ct. 1332, 79 L.Ed.2d 726 (1984).
Secondly, the trial judge properly permitted the state to enter a nolle prosequi with respect to a robbery count and proceed on the indictment. Deletion from an indictment of allegations unnecessary to the offense, or the withdrawal from the jury's consideration of one of several offenses initially charged does not constitute a forbidden amendment. United States v. Miller, 471 U.S. 130, 144-45, 105 S.Ct. 1811, 1819-20, 85 L.Ed.2d 99 (1985). Narrowing the theory of misconduct alleged in an indictment by striking surplus counts does not violate a defendant's right to be prosecuted pursuant to an indictment returned by a grand jury. United States v. Bissell, 866 F.2d 1343 (11th Cir. 1989); see Huene v. State, 570 So.2d 1031 (Fla. 1st DCA 1990), review denied, 581 So.2d 1308 (Fla. 1991).
Accordingly, we reverse defendant's conviction and vacate the sentence entered for his unlawful possession of a firearm during the commission of a felony. We affirm defendant's conviction for second-degree murder with a firearm but vacate the sentence ordered as to that conviction and remand for resentencing.
BARKDULL and NESBITT, JJ., concur.