use "for by -1" at array.splice