trying fix insert transaction