Historians suggest that the temples of ancient Java were also used to store the ashes of cremated deceased kings or royalty. This is in line with Buddhist concept of stupas as structures to store Buddhist relics, including the ashes and remains of holy Buddhist priests or the Buddhist king, patrons of Buddhism. The statue of god stored inside the garbhagriha (main chamber) of the temple is often modeled after the deceased king and considered to be the deified person of the king portrayed as Vishnu or Shiva according to the concept of devaraja. The example is the statue of king Airlangga from Belahan temple portrayed as Vishnu riding Garuda.