properly splicing in the array