update splice function (inversion) ><