deliting element in array