corrects error in AB cost