updated begin transaction to include is_xg