¶1OPINION
¶2This is an application for a writ of habeas corpus pursuant to Art. 11.07, V.A. C.C.P. Applicant was convicted of the offense of gambling promotion, V.T.C.A., Penal Code, § 47.03(a)(2), and sentenced to a seven-year term of confinement in the Texas Department of Corrections with a five-thousand dollar fine. Applicant has since been released on parole after serving a part of his sentence but remains “in custody” for purposes of this application.
¶3Applicant asserts that the indictment in cause number 349,395-B was fundamentally defective as it did not allege that applicant received or recorded “a bet or offer to bet.” See § 47.03(a)(2), supra. We agree and grant the requested relief.
¶4Initially, we note that if the indictment in the case at bar is fundamentally defective, so as not to charge an offense against the laws of Texas, such indictment may be challenged in a post-conviction writ of habeas corpus. Ex parte Bartmess, 739 S.W.2d 51 (Tex.Cr.App.1987); Standley v. State, 517 S.W.2d 538 (Tex.Cr.App.1975); Ex parte Roberts, 522 S.W.2d 461 (Tex.Cr. App.1975). The indictment in the present case states in pertinent part that applicant did:
intentionally and knowingly receive and record and offer to bet, over the telephone, on a sporting event, to-wit: a football game played between the Pittsburg (sic) Steelers and Cleveland Browns on November 22, 1981, from a person known only to the Grand Jury as Player 77.
It is further presented that in Harris County, Texas, JACK FENNER ELLIOTT, hereafter styled the Defendant, heretofore on or about NOVEMBER 22, 1981, did then and there unlawfully intentionally and knowingly receive and record and offer to bet, in person, on a sporting event, to-wit: a football game played between Pittsburg (sic) Steelers *764and Cleveland Browns on November 22, 1981, from a person known only to the Grand Jury as Player 77.
¶5To be valid, an indictment must charge each essential element of the offense sought to be charged. See Chance v. State, 563 S.W.2d 812 (Tex.Cr.App.1978); Ex parte Cannon, 546 S.W.2d 266 (Tex.Cr.App.1976); Ex parte Jones, 542 S.W.2d 179 (Tex.Cr.App.1976); Standley, supra. It is obvious that the above-mentioned indictment fails to allege that applicant received or recorded “a bet or offer to bet.” Instead of alleging applicant received or recorded an offer to bet, the indictment alleged that he did “receive and record anci offer to bet ... on a sporting event.”
¶6A bet, as defined by V.T.C.A., Penal Code, § 47.01(1) is an agreement that, depending on chance, one stands to win or lose something of value. In the instant case, absent an allegation in the indictment that the applicant received a bet or offer to bet, or that he recorded a bet or offer to bet, the indictment fails to state a violation of the gambling promotion laws. Therefore, it is fundamentally defective.
¶7The application for writ of habeas corpus is granted, and the prosecution under the indictment in trial court cause number 349,-395-B is hereby dismissed. A copy of this opinion shall be sent to the Board of Pardons and Paroles.
¶8. Art. 42.18, § 2(a) V.A.C.C.P., Vernon (1988) statutorily defines parole as a release of a prisoner from imprisonment, but not from the legal custody of the State. In addition, Art. 42.18, § 8(a), V.A.C.C.P., which went into effect September 1, 1987 and effectively replaced a similar provision in repealed Art. 42.12, § 15(f)(3), states in pertinent part:
Every prisoner while on parole shall remain in the legal custody of the State and shall be amenable to conditions of supervision ordered by the board.
¶9Moreover, the fact that applicant is no longer actually confined in the penitentiaiy is not dis-positive of his standing before us, since during his term of parole he is "in custody" and "confined” in terms of statutory construction. See Art. 11.21, V.A.C.C.P. See also Ex parte Henderson, 645 S.W.2d 469 (Tex.Cr.App.1983); and Ex parte Peel, 626 S.W.2d 767 (Tex.Cr.App.1982). See and compare Ex parte Renter, 734 S.W.2d 349 (Tex.Cr.App.1987).
¶10. The act of "offering to bet” is not an offense denounced by § 47.03(a)(2).