tried to fix insert and erase