update for the CBO metric

update the CBO metric and fix the previous errors