correction for deleting items