fix insert logic