splice takes index and how many, not fromIndex toIndex.