remove unneeded copy in insert