changed COMMIT_TRANSACTION to END_TRANSACTION