used; the details varied from place to place. Rupert Gethin suggests that the whole of Buddhist history may be regarded as a working out of the implications of the early scriptures. Origins According to a late part of the Pali Canon, the Buddha taught the three pitakas. It is traditionally believed by Theravadins that most of the Pali Canon originated from the Buddha and his immediate disciples. According to the scriptures, a council was held shortly after the Buddha's passing to collect and preserve his teachings. The Theravada tradition states that it was recited orally from the 5th century BCE to the first century BCE, when it was written down. The memorization was enforced by regular communal recitations. The tradition holds that only a few later additions were made. The Theravādin pitakas were first written down in Sri Lanka in the Alu Viharaya Temple no earlier than 29–17 BCE. The geographic setting of identifiable texts within the Canon generally corresponds to locations in the Ganges region of northeastern India, including the kingdoms of Kosala, Kasi, Vajji, and Magadha. While Theravada tradition has generally regarded Pali as being synonymous with the language of the kingdom of Magadhi as spoken by the Buddha, linguists have identified Pali as being more closely related to other prakrit languages of western India, and found substantial incompatibilities with the few preserved examples of Magadhi and other north-eastern prakrit languages. Linguistic research suggests that the teachings of the Buddha may have been recorded in an eastern India language originally, but were transposed into the west Indian precursor of Pali sometime before the Asokan era. Much of the material in the Canon is not specifically Theravādin, but is instead the collection of teachings that this school preserved from the early, non-sectarian body of teachings. According to Peter Harvey, it contains material which is at odds with later Theravādin orthodoxy. He states that "the Theravādins, then, may have added texts to the Canon for some time, but they do not appear to have tampered with what they already had from an earlier period." A variety of factors suggest that the early Sri Lankan Buddhists regarded canonical literature as such and transmitted it conservatively. Theravada tradition generally treats the Canon as a whole as originating with the Buddha and his immediate disciples (with the exception certain, generally Abhidhamma texts, that explicitly refer to events long after his death). Scholars differ