refactor init ccb