improves to delete shared cases