updating chain-diagram