DUGGAN, J. The defendant, Michael Dansereau, appeals a ruling by the Trial Court (McGuire, J.) denying his motion to vacate his convictions and sentences. We hold that the defendant was unlawfully sentenced to an extended term of imprisonment under RSA 651:6, II(a) (2006) and three years probation under RSA 651:2, V(a) (2006). Accordingly, we vacate his sentence and remand for resentencing.