just delete element instead of splicing