started updating cstatistic code foe binarymodel