Replace new with insert