derive CCC automatically