removed unused patterns.