move debit to new *.c file