tried to fix insert issues