currently if i delete a value in the middle without deleting it sequentially, the same item as the last one will be printed (Example: If you create an item with values 1, 2,