format
more format
correct the handling of transaction commit