rewrote check writing, began refactoring