added deduction of user balance