it was built during the tang dynasty