delete unnecessery rules