finished TxHandler and it passes all tests for correctness