As the Chinese master Jampal Sangwa (also known the venerable Gyim Shang), he provided the original analysis of the geomancy of Samye, Tibet’s first monastery, through mastery of mantras and astrology. He built the enclosure wall of Samye Temple according to the positions of stars.