check for insufficient funds in main