wiring up second pattern and pattern selection