do some improve in CalcProba