implement mark-and-delete.