fixed max debit function