proper deleted handler