removed array splicing