For purposes of determining whether a defendant has been convicted twice of the same offense in violation of the double jeopardy clause, the court should consider enhancements as well as substantive offenses in determining whether an offense is necessarily included in another offense. The defendant here was convicted of aggravated assault and battery with serious bodily injury as well as inflicting corporal injury on a spouse causing a traumatic condition. The latter conviction included a great bodily injury enhancement. Although the sentences for the former offenses were stayed under section 654, the court of appeal held that those convictions must be vacated because multiple convictions under these circumstances violated the double jeopardy clause. The court rejected the Attorney Generals argument that the inquiry should be limited to the substantive offenses themselves without consideration of applicable enhancements.