added recognition of deleted items