¶1Neeley appeals his departure sentences, after his convictions for aggravated battery,
¶2The reasons given by the court for its departure upwards from the presumptive sentence range were:
1. The defendant is an Habitual Felony Offender under Florida Statute 775.-084.
2. The defendant’s past record and the violent nature and excessive force of the present case show the defendant’s violent nature and specifically indicate that the defendant will engage in violent criminal acts upon his release from incarceration.
3. The Court finds that reason # 1 would, standing alone, warrant this departure.
¶3The court failed to make the finding mandated by section 775.084(3) that an enhanced sentence was necessary to protect the public,
¶4*692The second reason given by the trial court takes into account Neeley’s prior record, which was scored, and is therefore an improper basis to depart upward from the presumptive guidelines sentence. Hendrix v. State, 475 So.2d 1218 (Fla.1985). Further, in this case use of force against the victim was scored since it was an element of the offense. Therefore, it cannot be used again as a basis for departing. Hendrix; Holden v. State, 487 So.2d 1199 (Fla. 5th DCA 1986).
¶5We also reverse the trial court’s imposition of community service in lieu of costs as provided by section 27.3455 because the crimes for which Neeley was convicted took place prior to July 1, 1985, when the statute became effective. The application of this statute to defendants whose crimes were committed prior to its effective date violates the ex post facto restrictions of both the United States and the Florida Constitutions.
¶6Accordingly, we vacate the sentences and remand for resentencing.
¶7VACATE SENTENCES AND REMAND.
¶8. § 784.045, Fla.Stat. (1985).
¶9. § 790.07, Fla.Stat. (1985).
¶10. § 784.021(1)(a), Fla.Stat. (1985).
¶11. § 806.13(l)(b)1, Fla.Stat. (1985).
¶12. See Brown v. State, 457 So.2d 1079 (Fla. 5th DCA 1984), review denied, 461 So.2d 113 (Fla.) & 464 So.2d 556 (Fla.1985).
¶13. U.S. CONST. art. I, § 10, cl. 1; Art. I, § 10, Fla. Const.