rectifying the .splice logic