legacy from Tang