staring on the debit logic