document for chain