bookkeeping of the deleted elements