shrink down the markForDeletion function