adapt to Ccontainer