change append with insert