minor corrections to the bank API code