refactoring trial balance