updating credit deduction code.