removed all unused patterns