sed on the chain A, B and C of