updating with credit deduction