The term "Brahmā" in Buddhism refers to the leading god, but in some Suttas the term broadly refers to all deities who live in the realm of form. Ancient and medieval Buddhist texts define seventeen, or more, heavenly "Brahmā" realms (along with demi-gods, hungry ghost and hellish realms), in a stratified manner, which are reached in afterlife based on monastic achievement and karma accumulation. A "brahma" in these texts refers to any deva in the heavenly realms. The Buddhist god Brahmā himself resides in the highest of the seventeen realms, called the "Akanistha". The multitude of Buddhist brahmas refer to: