proper handling of deletion events