used Array.prototype.splice features