reorders the index when item is removed. **extra challenge**