error in cbc array length in constructor