fixed CB function parameter variables
added TMath for cb function